﻿module Sustainalytics.Screening {

    export class Filter {
        id: string;
        name: string;
        ownerUserId: string;
        shared: boolean;
        rootFilterId: string;
        filterType: FilterType;
        stats: FilterStatsDto;
        associatedUserId: string;
    };


    export class SaveFilterDto {
        filterId: string;
        name: string;
        shared: string;
    }


    export class UserFiltersDto {
        userId: string;
        filters: ExtendedFilterDto[];
    };


    export class ExtendedFilterDto {
        filter: Filter;
        stats: FilterStatsDto;
    };


    export class FilterStatsDto {
        lastUsed: Date;
        lastSaved: Date;
        createdByFirstName: string;
        createdByLastName: string;
    };

    export enum StandardFilter {
        StandardFilter = 0
    }
}